﻿using ERPPublic;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProcurementManagement.Domain.ProcurementDomain
{
    /// <summary>
    /// （采购退款）直接退款
    /// </summary>
    [SugarTable("DirectRefund")]
    public class DirectRefund:Audit
    {
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)] // 主键和自增
        public int DirectRefundId { get; set; }
        /// <summary>
        /// 采购退货id
        /// </summary>
        public int PurchaseReturnsIds { get; set; }
        /// <summary>
        /// 供应商名称
        /// </summary>
        public string? VName { get; set; }
        /// <summary>
        /// 退货人员
        /// </summary>
        public string? PReturnsPersonnel { get; set; }
        /// <summary>
        /// 已退货金额
        /// </summary>
        public decimal? PRtotalAmount { get; set; }
        /// <summary>
        /// 采购退货主题
        /// </summary>
        public string? PurchaseReturnsTopic { get; set; }
        /// <summary>
        /// 退货日期
        /// </summary>
        public DateTime? PRReturnDate { get; set; }
        /// <summary>
        /// 采购退货编号
        /// </summary>
        public string? PurchaseReturnsCode { get; set; }
        /// <summary>
        /// 本次退款金额
        /// </summary>
        public decimal? BenPrice { get; set; }
        /// <summary>
        /// 剩余退款金额
        /// </summary>
        public decimal? SengPrice { get; set; }
        /// <summary>
        /// 本次退款日期
        /// </summary>
        public DateTime? BenDate { get; set; }
        /// <summary>
        /// 下次退款日期
        /// </summary>
        public DateTime? XiaDate { get; set; }
        /// <summary>
        /// 支付方式
        /// </summary>
        public string ?PayType { get; set; }
        /// <summary>
        /// 银行账号
        /// </summary>
        public string? YingHang { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string ? Remark { get; set; }

        /// <summary>
        /// 用来区分退款是（直接退款还是采购） 1是直接退款，2是供应商预付款
        /// </summary>
        public int ? idddddd { get; set; }


    }

    public class PageDirectRefund
    {
        public int PageLast { get; set; }
        public int SumCount { get; set; }
        public List<DirectRefund> list { get; set; }
    }

}
